import request from './request.js'

//删除商品
function deleteGoods(data) {
    return request({
                data  : data,
                method: "POST",
                url   : 'trip/ordercancel'
            })
}

//商品详情
function getDetailsGoods(data) {
    return request({
                data  : data,
                method: "POST",
                url   : 'trip/orderdetail'
            })
}
//添加商品
function addGoods(data) {
    return request({
                       data  : data,
                       method: "POST",
                       url   : 'shop/shopgoodsadd'
                   })
}
//修改商品
function editGoods(data){
    return request({
                       data  : data,
                       method: "POST",
                       url   : 'goods/orderdel'
                   })
}
function shopCalGoods(data){
    return request({
                       data  : data,
                       method: "POST",
                       url   : 'goods/ordercancel'
                   })
}
function getShopDetails(data){
    return request({
                       data  : data,
                       method: "POST",
                       url   : 'shop/myShopDetail'
                   })
}
export default {
    getDetailsGoods,
    shopCalGoods,
    editGoods,
    addGoods,
    deleteGoods,
    getShopDetails
}